package book;

public class Booklist {
    private Book[] books = new Book[10];
    private int usesize = 0;

    public Booklist() {
        this.books[0] = new Book("西游记", "吴承恩", 20, "小说");
        this.books[1] = new Book("三国演义","罗贯中",15,"小说");
        this.books[2] = new Book("水浒传","施耐庵",20,"小说");

        usesize = 3;
    }

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int cutsize,Book books) {
        this.books[cutsize] = books;
    }

    public int getUsesize() {
        return usesize;
    }

    public void setUsesize(int usesize) {
        this.usesize = usesize;
    }

    public int getBookslength(){
        return books.length;
    }

}
